#ifndef _COM_SPI_H_
#define _COM_SPI_H_

#include "stdint.h"

//base interface
void com_spi_init(void);
void com_cs(uint8_t st);
void com_spi_high_speed(void);
void com_spi_low_speed(void);

//spi data r/w
uint8_t com_spi_rw(uint8_t dataW);
uint8_t com_spi_write(uint8_t *dataw, uint32_t Len);
uint8_t com_spi_read(uint8_t *datar, uint32_t Len);


#endif /* _COM_SPI_H_ */
